<?php /* Smarty version 2.6.18, created on 2009-10-12 10:42:30
         compiled from systemT_popup.tpl */ ?>
<script type="text/javascript">	
	var calendar1 = new ekimo_calendar("t_show","t_date","Training Date", "cal1Container");
</script>
<form method="POST" action="/admin/systemTAdd">
	<div id="drag_bar" class="blue"><h2 class="dotted">Training</h2></div>
	<table>
		<tr>
			<td>
				<label>Course Title:</label>
			</td>
			<td>
				<input type="hidden" name="hid" value="<?php echo $this->_tpl_vars['training']['id']; ?>
">
				<input type="text" name="course_title" value="<?php echo $this->_tpl_vars['training']['course_title']; ?>
">
			</td>
		</tr>
		<tr>
			<td>
				<label>Trainor:</label>
			</td>
			<td>
				<input type="text" name="trainor" value="<?php echo $this->_tpl_vars['training']['trainor']; ?>
">
			</td>
		</tr>
		<tr>
			<td>
				<label>Organization:</label>
			</td>
			<td>
				<select name="org">
					<option value=""> --- </option>
					<?php $_from = $this->_tpl_vars['organizations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['organization']):
?>
						<option value="<?php echo $this->_tpl_vars['organization']['org_id']; ?>
"
						<?php if ($this->_tpl_vars['organization']['org_id'] == $this->_tpl_vars['training']['org_id']): ?> selected <?php endif; ?>
						><?php echo $this->_tpl_vars['organization']['trading_name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<label>Skill:</label>
			</td>
			<td>
				<select name="skill">
					<option value=""> --- </option>
					<?php $_from = $this->_tpl_vars['skills']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['skill']):
?>
						<option value="<?php echo $this->_tpl_vars['skill']['id']; ?>
"
						<?php if ($this->_tpl_vars['skill']['id'] == $this->_tpl_vars['training']['skill_id']): ?> selected <?php endif; ?>
						><?php echo $this->_tpl_vars['skill']['skill']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<label>Date Training:</label>
			</td>
			<td>
				<input type="text" name="date_training" id="t_date" value="<?php echo $this->_tpl_vars['training']['date_training']; ?>
">
				<a href="javascript:void(0);" id="t_show">
					<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
				</a>
				<div id="cal1Container" style="display:none;position:absolute;"></div> 
			</td>
		</tr>
	</table>
<input type="submit" value="Save">
<input type="button" value="Cancel" onclick="popup('popUpDiv');">
</form>



	
	
	